﻿using UnityEngine;
using System.Collections;

public class GameManager : MonoBehaviour {
	
	public enum Difficulties
	{
		Normal,
		Hard
	}
	
	public static Difficulties Difficulty = Difficulties.Normal;
	
	public static Power.Type SelectedPower = Power.Type.None;
	
	public static void SetPower(Power.Type newPower)
	{
		SelectedPower = newPower ;
	}

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	public void ExitPressed(){
		Invoke("QuitNow", 0.5f);
	}
	
	void QuitNow()
	{
		Application.Quit();
	}
	
	public void onDifficultyChange()
	{
		if(UIPopupList.current.value == "Normal")
		{
			Difficulty = Difficulties.Normal;
		}
		else
		{
			Difficulty = Difficulties.Hard;
		}
	}
}
